<template>
  <el-select :model-value="props.modalValue" @update:model-value="$emit('update:modalValue', $event)" value-key="name" placeholder="Select" size="small" style="width: 150px">
    <el-option v-for="(item, index) in gamePoints" :key="index" :label="item.name" :value="item.initial" />
  </el-select>
</template>

<script setup lang="ts">
import { TypeMathPoint } from '~/models/types';
import { oProject } from '~/models/Project';
const gamePoints = computed(() => oProject.value.globals.filter( x => x.type.equal(TypeMathPoint)))

const props = defineProps<{
  modalValue: any
}>()
defineEmits([
  'update:modalValue'
])
</script>